import glob
import pandas as pd
import matplotlib.pyplot as plt

#enter full path to post processed files
#choose Maria_YSU or Maria_MYJ, be cautious about legend
dir='/~/outputs/Maria_MYJ/'
csv_files = glob.glob(dir+'*.csv')  # Retrieves all CSV files in the current directory
data = {}  # Dictionary to store the data from each file
for file_name in csv_files:
    df = pd.read_csv(file_name,skiprows=1)
    data[file_name] = df
# Plotting code here
for file_name, df in data.items():
    print(file_name)
    plt.plot(6*df.index, df['All_Max_WND_SPD_10'], label=file_name)
plt.xlabel('time (h)')
plt.ylabel('wind intensity (m/s)')
plt.legend(['km_0_2','km_5_0','default','lvl_4'])
plt.show()
